package com.lanqiao.vo;

import java.io.Serializable;

/**
 * @author 张建平 on 2018/9/28 17:51
 */
public class Street implements Serializable {
    private Integer id;
    private String name;

    /**关联的实体 <association> </association>,M:1 */
    private District district;

    public Street() {
    }

    public Street(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public District getDistrict() {
        return district;
    }

    public void setDistrict(District district) {
        this.district = district;
    }

    @Override
    public String toString() {
        return "Street{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
